package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IInitRightBO;
import com.simple.portal.dao.IInitRightDAO;
import com.simple.portal.vo.InitRightIdVO;
import com.simple.portal.vo.InitRightVO;

@Service("initRightBO")
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public class InitRightBOImpl implements IInitRightBO {

	@Autowired
	private IInitRightDAO initRightDAO;
	
	@Override
	public InitRightVO findById(InitRightIdVO initRightIdVO) {
		return initRightDAO.findById(initRightIdVO);
	}

	@Override
	public List<InitRightVO> findAll() {
		return initRightDAO.findAll();
	}
}
